/*
 * @Author: dfy
 * @Date: 2022-11-27 16:46:04
 * @LastEditors: dfy
 * @LastEditTime: 2022-12-14 17:13:55
 * @FilePath: \FPCC\pages\index\index.js
 * @Description: 
 * 
 * Copyright (c) 2022 by YongXin, All Rights Reserved. 
 */
// logs.js
const util = require('../../utils/util.js')

Page({
  data: {
    firstEnter: false,//欢迎页显不显示
    notice:['第一个内容lalalallalalallas后儿童和哦换个偶尔和我','第二个啦啦啦','第三个啦啦啦']
  },
  onLoad() {
    // wx.hideTabBar()
      // 获取 isFirstLaunch 值
let isFirstLaunch = wx.getStorageSync('isFirstLaunch');
// 判断是否为第一次进入小程序
if (isFirstLaunch) {
      wx.showTabBar()
  // console.log("我不是第一次进入");
} else {
      wx.hideTabBar()
  // console.log("我是第一次进入");
  wx.setStorageSync('isFirstLaunch', true);
  this.setData({
    firstEnter:true
  })
}
  },
  toOrder(){
    wx.navigateTo({
    url: '../order-item/order-item'
});
  },
  toWeighing(){
    wx.navigateTo({
    url: '../weighing-process/weighing-process'
});
  },
  closeWel(e) {
    this.setData({
    firstEnter: e.detail
    })
    wx.showTabBar()
  }
})
